<?php

class Human
{
  function getHairColor()
  {
    return 'black';
  }

}

class Man extends Human
{
  function getHairColor()
  {
    return 'brown';
  }
}

class Boy extends Man
{
  function getHairColor()
  {
    return 'golden';
  }
}

$vikas = new Boy;
echo $vikas->getHairColor();

print_r(get_declared_classes());
echo "\n---------------\n";
echo get_class($vikas);
echo "\n---------------\n";
print_r( get_class_methods('Boy'));
echo "\n---------------\n";

